hysop.operator.custom module¶
- class hysop.operator.custom.CustomOperator(func, invars=None, outvars=None, extra_args=None, ghosts=None, **kwds)[source]¶
Bases:
ComputationalGraphNodeFrontend
- Function should take parameters in the following order:
all input fields
all input parameters
all output fields
all output parameters
Note that discrete fields are passed as arguments to the custom function.
Initialize a ComputationalGraphNodeFrontend
- Parameters:
implementation (Implementation, optional, defaults to None) – target implementation, should be contained in available_implementations(). If None, implementation will be set to default_implementation().
base_kwds (dict, optional, defaults to None) – Base class keywords arguments. If None, an empty dict will be passed.
impl_kwds – Keywords arguments that will be passed towards implementation implemention __init__.
- implementation¶
the implementation key
- Type:
Implementation
- backend¶
the backend corresponding to implementation
- Type:
Backend
- impl¶
the implementation class
- impl_kwds¶
Keywords arguments that will be passed towards implementation implemention impl.__init__ during a call to _generate.